package com.zucc.controller.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author : charspan
 * @Description :
 * @create : 2021-12-05 8:21 上午
 */
@Data
@ApiModel("新增用户参数")
public class UserAddReq {

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "账号(用户名)", required = true)
    private String account;

    @ApiModelProperty(value = "密码(需md5加密)", required = true)
    private String password;

    @ApiModelProperty(value = "所在分院，如：计算分院")
    private String brcachMame;

    @ApiModelProperty(value = "教师号")
    private String teacherCode;

    @ApiModelProperty(value = "职称")
    private String title;

    @ApiModelProperty(value = "所在班级，如：计算1803")
    private String className;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "头像短链接")
    private String portrait;

    @ApiModelProperty(value = "性别,0:男,1:女")
    private Integer sex;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "出生日期", example = "1999-08-08")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;

    @ApiModelProperty(value = "办公电话")
    private String officePhone;

    @ApiModelProperty(value = "手机")
    private String mobile;

    @ApiModelProperty(value = "电子邮箱")
    private String email;

    @ApiModelProperty(value = "角色类型（枚举），0:普通用户，1:教师用户，2:数据中心管理员，3:系统管理员", required = true)
    private Integer roleType;
}
